package com.rogue.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rogue.system.domain.dto.UserPageDTO;
import com.rogue.system.domain.entity.SysUser;
import com.rogue.system.domain.entity.SysUserRole;
import java.util.List;
import org.apache.ibatis.annotations.Delete;

/**
* @author Yeah
* @description 针对表【sys_user_role(用户和角色关系表)】的数据库操作Mapper
* @createDate 2022-03-16 14:24:43
* @Entity generator.domain.SysUserRole
*/
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    /**
     * 根据用户 id 删除记录
     * @author Yeah
     * @date 2022/3/20
     * @param id
     */
    @Delete("delete from sys_user_role WHERE user_id = #{id} ")
    void deleteByUserId(Long id);


}




